#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
/* 引入QComboBox */
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QString>
#include <QChar>
#include <QLabel>


class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    /* 声明一个QComboBox对象 */
    QComboBox *comboBox_model;
    QComboBox *comboBox_version;
    QComboBox *comboBox_type;
    QComboBox *comboBox_factory;
    QComboBox *comboBox_check_year;
    QComboBox *comboBox_check_month;
    QComboBox *comboBox_check_day;
    QComboBox *comboBox_check_sequence;

    QLabel *label_model;
    QLabel *label_version;
    QLabel *label_type;
    QLabel *label_factory;
    QLabel *label_check_year;
    QLabel *label_check_month;
    QLabel *label_check_day;
    QLabel *label_check_sequence;

    QPushButton *pushBtn_create;
    QPushButton *pushBtn_parse;
    QLineEdit *lineEdit;
    QLineEdit *lineEdit_input;

    QLabel *label_sn_input;
    QLabel *label_sn_out;



private slots:
    /* 声明QComboBox对象的槽函数 */
     void comboBox_modelIndexChanged(int);
     void comboBox_versionIndexChanged(int);
     void comboBox_typeIndexChanged(int);
     void comboBox_factoryIndexChanged(int);
     void comboBox_check_yearIndexChanged(int);
     void comboBox_check_monthIndexChanged(int);
     void comboBox_check_dayIndexChanged(int);
     void comboBox_check_sequenceIndexChanged(int);

     void pushBtn_create_Clicked();
     void pushBtn_parse_Clicked();
     int asc_to_item(QString string);
     QString num_to_asc(int value);
     void set_parse_data(int index ,int item);
};
#endif // MAINWINDOW_H
